package org.JQbitorrentClinet.request.torrentmanagement;

import com.google.gson.reflect.TypeToken;
import lombok.Builder;
import org.JQbitorrentClinet.base.BaseGetParam;
import org.JQbitorrentClinet.pojo.torrent.Category;

import java.util.Map;

@Builder
public class GetAllCategoriesParam extends BaseGetParam {

    public GetAllCategoriesParam() {
        responseType= new TypeToken<Map<String,Category>>(){}.getType();
    }

    @Override
    public String getApiUrl() {
        return "/api/v2/torrents/categories";
    }
}
